package com.mengdie.shuidi.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mengdie.shuidi.R;
import com.mengdie.shuidi.model.LineEntity;

import java.util.List;

/**
 * Created by apple on 16/10/15.
 */

public class LineAdapter extends BaseQuickAdapter<LineEntity,BaseViewHolder> {

    public LineAdapter(List data) {
        super(R.layout.item_line, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, LineEntity line) {
        baseViewHolder.setText(R.id.tv_line, line.getName());
    }
}
